<template>
  <div class="goods-introduct-box">
    <h1>{{obj.title}}</h1>
    <hr>
    <div class="content" v-html="obj.content"></div>
  </div>
</template>


<script>
export default {
  data() {
    return {
      obj: {}
    };
  },
  created() {
    this.getShopIntroduce();
  },
  methods: {
    getShopIntroduce() {
      this.$http.get("api/goods/getdesc/" + this.$route.params.id).then(rs => {
        let data = rs.body;

        if (data.status === 0) {
          this.obj = data.message[0];
        }
      });
    }
  }
};
</script>   

<style lang="scss" >
.goods-introduct-box {
  padding: 5px;
  h1 {
    font-size: 14px;
    text-align: center;
    color: #26a2ff;
  }
  .content {
    //   background: red;
    // width: 100%;
    p {
      margin: 0;
    }
    img {
      width: 100%;
      height: auto;
      vertical-align: middle;
    }
  }
}
</style>
